<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
    <base href="<%=basePath%>">
    <s:head theme="ajax"/>
    <title>My JSP 'choiceTopics.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

  </head>
  
  <body>
   	<div>
	<s:if test="topics!=null">
	<table>
		<tr>
			<td class="mtopics_1">
				课题名:
			</td>
			<td class="mtopics_2">
				<s:textfield name="topicsName" value="%{topics.topicsName}"
					theme="simple" size="50" cssClass="topicsName">
				</s:textfield>

			</td>
		</tr>
		<tr>
			<td class="mtopics_1">
				课题内容:
			</td>
			<td class="mtopics_2">
				<s:textarea name="topicsContent" value="%{topics.topicsContent}"
					theme="simple" cssClass="topicsContent">
				</s:textarea>
			</td>
		</tr>
		<tr>
			<td class="mtopics_1">
				课题要求:
			</td>
			<td class="mtopics_2">
				<s:textarea name="topicsRequire" value="%{topics.topicsRequire}"
					theme="simple" cssClass="topicsContent">
				</s:textarea>
			</td>
		</tr>
		<tr>
			<td class="mtopics_1">
				专业类别:
			</td>
			<td class="mtopics_2">
				<s:select list="topicsClass" theme="simple" listKey="topicsClassNum" listValue="topicsClassName" value="topics.TopicsClass.topicsClassNum"></s:select>
			</td>
		</tr>

			<tr>
			<td class="mtopics_1">
				面向专业:
			</td>
			<td class="mtopics_2">
				<s:optiontransferselect 
			    label="面向专业" 
				name="listL.professionalNum"
				list="listL"
				listKey="professionalNum"
				listValue="professionalName"
				multiple="true"
				addToLeftLabel="向左移除<-"
				addToRightLabel="向右添加->"
				allowUpDownOnLeft="false"
				rightUpLabel="向上移动"
				rightDownLabel="向下移动"
				allowAddAllToLeft="false"
				allowAddAllToRight="false"
				allowSelectAll="false"
				headerKey="XL"
				headerValue="请选择该课题面向的专业"
				emptyOption="true"
				doubleList="listR"
				doubleName="listR.professionalNum"
				doubleListKey="professionalNum"
				doubleListValue="professionalName"
				doubleHeaderKey="XXL"
				doubleHeaderValue="专业优先级从上到下依次降低"
				doubleEmptyOption="true"
				doubleMultiple="true"
				cssClass="profCss1"
				doubleCssClass="profCss2"
				theme="simple" />
			</td>
			
		</tr>
		<tr>
			<td class="mtopics_1">
				<s:submit name="submit" id="submit" value="确定" align="center"
					theme="simple"></s:submit>
			</td>
			<td class="mtopics_2">
				<s:reset name="cancel" id="cancel" value="取消" align="center"
					theme="simple"></s:reset>
			</td>
		</tr>

	</table>
	</s:if>
</div>
  </body>
</html>
